home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20041116-20060924
/
000084_vikrant.shahir@gmail.com_Thu Apr 14 09:16:57 2005.msg
< prev
next >
Wrap
Internet Message Format
|
2006-09-27
|
2KB
Path: newsmaster.cc.columbia.edu!panix!bloom-beacon.mit.edu!4.24.21.218.MISMATCH!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!l41g2000cwc.googlegroups.com!not-for-mail
From: "vikrant.shahir@gmail.com" <vikrant.shahir@gmail.com>
Newsgroups: comp.protocols.kermit.misc
Subject: calling kermit script through JSP page
Date: 14 Apr 2005 00:57:23 -0700
Organization: http://groups.google.com
Lines: 39
Message-ID: <1113465443.874463.62130@l41g2000cwc.googlegroups.com>
NNTP-Posting-Host: 202.63.168.35
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1113465460 22126 127.0.0.1 (14 Apr 2005 07:57:40 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 14 Apr 2005 07:57:40 +0000 (UTC)
User-Agent: G2/0.2
Complaints-To: groups-abuse@google.com
Injection-Info: l41g2000cwc.googlegroups.com; posting-host=202.63.168.35;
posting-account=IvJR2A0AAAA49r1jRi6JyM_8WEHa4lpw
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15320
hi all,
I would like to thank all of you and greatly to the "creator" of
kermit, Mr. Frank.
I was able to get connected to a GSM modem and was able to transfer a
100kb of file from one end to other using kermit.
The kermit script(following) is written to attain the functionality.
The script when executed from the terminal executes well,
like this "./script_name <cell no> <file name>"
But i am facing a small problem...
when the script is called from a JSP page it partially runs!
meaning ...please see the following comments in brackets in script.
#!/usr/bin/kermit + ;SCRIPT START
set disconnect on
set line /dev/ttyS0 .....(DOES NOT WORKS)
open write /vikrant/check.txt......(WORKS)
write file \%1 \%2 ......(WORKS)
close write-file ......(WORKS)
set exit warning off
cd /vikrant/inbox
set dial timeout 70
dial \%1 .....(DOES NOT WORKS)
if fail exit 1
kermit -g /vikrant/outbox/*\%2
exit ;SCRIPPT END
Meaning ...the 3 line are executed which writes 2 parameters
into a file "check.txt"
the "set line" and "dial" command is not executed ...where as, it is
all executed
when invoked from terminal
what probably would be the reason ?
with regards
Vikrant